<template>
  <div>
    <examine-tab :table-data="list" />
    <pagination :total="total" @pagination="pagination" />
  </div>
</template>

<script>
import examineTab from './components/examine/examine-tab'
import pagination from '@/components/Pagination'
import { getExamineListApi } from '@/api/agent'
export default {
  components: {
    examineTab,
    pagination
  },
  data() {
    return {
      total: 0,
      p: 1,
      num: 10,
      list: []
    }
  },
  created() {
    this.getExaminaList()
  },
  methods: {
    pagination(val) {
      this.p = val.page
      this.num = val.limit
    },
    getExaminaList() {
      const data = {
        p: this.p,
        num: this.num,
        brand_id: this.$store.state.user.brand_id,
        status: 0
      }
      getExamineListApi(data).then(res => {
        console.log(res)
        this.list = res.list
      })
    }
  }
}
</script>

<style lang="sass" scoped>

</style>
